<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<input type="hidden" name="currentPage" value="${page}"/>
<input type="hidden" name="searchText" value="${searchText}"/>
<input type="hidden" name="departmentId" value="${departmentId}"/>
<input type="hidden" name="totalPage" value="${totalPage}"/>
<table width="100%" border="0" height="100%" cellpadding="0" cellspacing="0" class="yhgltable_1">
   <thead>
     <tr>
       <th>用户名</th>
       <th>姓名</th>
       <!-- <th>部门</th>
       <th>职位</th> -->
       <th>角色</th>
       <th>手机</th>
       <th>邮箱</th>
       <th>添加时间</th>
     </tr>
   </thead>
   <c:forEach items="${operators.data}" var="operator" varStatus="stats">
        <c:if test="${stats.index%2==0}">
		  <tr>
	    </c:if>
		<c:if test="${stats.index%2==1}">
				<tr class="gray">
		</c:if>
           <td width="15%"><p>
               <input type="checkbox" name="group_box" value="${operator.operatorId}">
               ${operator.loginName}</p></td>
           <td width="10%">${operator.name}</td>
           <%-- <td width="10%">${operator.position.department.name}</td>
           <td width="10%">${operator.position.name}</td> --%>
           <td width="12%">${operator.operatorGroups.groupName}</td>
           <td width="12%">${operator.mobile}</td>
           <td width="15%">${operator.email}</td>
           <td width="13%"><fmt:formatDate value="${operator.createDate}" type="date" pattern="yyyy-MM-dd"/></td>
        </tr>
   </c:forEach>  
</table>
<script>
	var totalPage = $("[name=totalPage]").val()*1;
	var page = $("[name=currentPage]").val()*1;
	$(".prev").attr("style","");
	$(".next").attr("style","");
	if(page>=totalPage){
		$(".next").attr("style","filter: Alpha(opacity=50);-moz-opacity:.1;opacity:0.5;");
	}
	if(page<=1){
		$(".prev").attr("style","filter: Alpha(opacity=50);-moz-opacity:.1;opacity:0.5;");
	}
</script>